import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/pages/login/index'
    },
    {
      name: 'redirect',
      path: '/pages/redirect/index',
      component: () => import('@/views/redirect/index')
    },
    {
      name: 'index',
      path: '/pages/index/index',
      component: () => import('@/views/index/index')
    },
    {
      name: 'login',
      path: '/pages/login/index',
      component: () => import('@/views/login/index')
    },
    {
      name: 'learning',
      path: '/pages/learning/index',
      component: () => import('@/views/learning/index')
    }
  ],
  mode: 'hash'
})

export default router
